﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Msung.Core.Extensions
{
    public static class EnumExtensions
    {
        //public static string ToDescription(this System.Enum @enum)
        //{
        //    if (@enum == null)
        //        return string.Empty;
        //    var type = @enum.GetType();
        //    var f = type.GetField(@enum.ToString());
        //    if (f == null)
        //        return @enum.ToString();
        //    var da = (DescriptionAttribute)Attribute.GetCustomAttribute(f, typeof(DescriptionAttribute));
        //    return da?.Description ?? @enum.ToString();
        //}
    }
}
